import { REPLY_TYPE } from '@/enum/dynamic';
import { ApiProperty } from '@nestjs/swagger';

export class ReplyDto {
  @ApiProperty({
    description: '回复类型',
    example: REPLY_TYPE.COMMENT,
    enum: REPLY_TYPE,
  })
  type: REPLY_TYPE;

  // 发布回复的人的id
  replyUserId: number;

  @ApiProperty({
    description: '回复对象的id',
    example: 0,
  })
  replyTargetId: number;

  @ApiProperty({
    description: '回复对象的作者的id',
    example: 0,
  })
  replyTargetUserId: number;

  @ApiProperty({
    description: '回复对象的所在动态的id',
    example: 0,
  })
  dynamicId: number;

  @ApiProperty({
    description: '所属评论id',
    example: 0,
  })
  commentId: number;

  @ApiProperty({
    description: '回复的内容',
    example: 0,
  })
  content: string;
}
